<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

{% if info: %}
<p style="color:#ff0000">{{info}}</p>
{% endif %}
{{question}}
<h3>{{question['title']}}</h3>
<p>{{question.get('summary','')}}</p>
<br>

<ul>
{% if question.has_key('answers') %}
{% for a in question['answers'] %}
<li>
<p>{{a['answer']}}</p>
<p>{{a['uid']}}</p>
</li>
{%  endfor %}
{%  endif %}
</ul>

<b>Answer</b>
<form action="{{url_for('question.answer')}}" method="post">
<p><input type="text" name="answer"></p>
<p><input type="hidden" name="_id" value="{{question.get('_id','')}}"></p>
<p><input type="submit" value="Answer the question"></p> 
</form>
<p><a href="{{url_for('question.index')}}">return question list</a></p>
</body>
</html>